package com.code.design.model.demo.factory.abstractfactorypattern.factory;

import com.code.design.model.demo.factory.abstractfactorypattern.mask.HighEndMask;
import com.code.design.model.demo.factory.abstractfactorypattern.mask.IMask;
import com.code.design.model.demo.factory.abstractfactorypattern.suit.HighEndProtectiveSuit;
import com.code.design.model.demo.factory.abstractfactorypattern.suit.IProtectiveSuit;

public class HighEndFactory implements IFactory {

    @Override
    public IMask createMask() {
        IMask mask = new HighEndMask();
        // .....
        // HighEndMask的100行初始化代码
        return mask;
    }

    @Override
    public IProtectiveSuit createSuit() {
        IProtectiveSuit suit = new HighEndProtectiveSuit();
        // .....
        //  HighEndProtectiveSuit的100行初始化代码
        return suit;
    }
}
